<div id="ChuyenMuc">
<?php
	$sqlcm = "select * from chuyenmuc";
	$rschuyenmuc = mysql_query($sqlcm);
	while($dongcm = mysql_fetch_array($rschuyenmuc))
	{
        if(strcasecmp($dongcm['TenChuyenMuc'],"Liên hệ")!=0)
        {
    		echo "<h4>";
    			echo "<div id='MauChuyenMuc'>";
    				echo "<a href='news.php?do=baivietchuyenmuc&mcm={$dongcm["MaChuyenMuc"]}&page=1'>{$dongcm['TenChuyenMuc']}</a>";
    			echo "</div>";
        	$sqllcm = "select * from loaichuyenmuc where loaichuyenmuc.MaChuyenMuc = ".$dongcm['MaChuyenMuc'];
    		$rsloaichuyenmuc = mysql_query($sqllcm);
    		while($donglcm = mysql_fetch_array($rsloaichuyenmuc))
    		{
    			echo "<div id='MauLoaiChuyenMuc'>";
    				echo "<a href='news.php?do=baivietloaichuyenmuc&mlcm={$donglcm["MaLoaiChuyenMuc"]}&page=1'>{$donglcm['TenLoaiChuyenMuc']}</a>";
    			echo "</div>";
    		}
    		echo "</h4>";
    		echo "<table width='610'>";
    			echo "<tbody>";
    				echo "<tr>";
    					echo "<td id='LoaiChuyenMucTrai'>";
    						$MaCM = $dongcm["MaChuyenMuc"];
    						include 'baivietchuyenmucindex.php';
    					echo "</td>";
    					echo "<td id='LoaiChuyenMucPhai'>";
    						include 'baivietlist.php';
    					echo "</td>";
    				echo "</tr>";
    			echo "</tbody>";
    		echo "</table>";
        }
	}
?>
</div>